set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}")
#find_package(RTGUBoost REQUIRED)
#find_package(RTGUIntelTBB REQUIRED)

#
# Preconfigure CMake defaut build options
#

INCLUDE("cxx_flag_overrides.cmake")
set(CMAKE_DEBUG_POSTFIX "_d")

set (CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE INTERNAL "" FORCE) 

IF(NOT DEFINED ChOR_RUNTIME_OUTPUT_DIRECTORY)
	SET(ChOR_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
ENDIF()
IF(NOT DEFINED ChOR_LIBRARY_OUTPUT_DIRECTORY)
	SET(ChOR_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
ENDIF()
IF(NOT DEFINED ChOR_ARCHIVE_OUTPUT_DIRECTORY)
	SET(ChOR_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
ENDIF()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${ChOR_RUNTIME_OUTPUT_DIRECTORY}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${ChOR_LIBRARY_OUTPUT_DIRECTORY}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${ChOR_ARCHIVE_OUTPUT_DIRECTORY}")

#
# Define RTGU
#

cmake_minimum_required(VERSION 2.8)
PROJECT(ChOR)

IF (MSVC)
# Add LARGEADDRESSAWARE as additional command line option to linker (not visible in MSVC GUI)
# 
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /LARGEADDRESSAWARE")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
ENDIF()

ADD_SUBDIRECTORY("Awesomium")
ADD_SUBDIRECTORY("unitTest")
ADD_SUBDIRECTORY("GLexample")
IF (_MSVC)
ADD_SUBDIRECTORY("pyAwesomium")
ENDIF()
